<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
			<jquery/>
        <link type="text/css" rel="stylesheet" href="__ROOT__/admin/tpl/public/style/{$hd.session.style}.css"/>
		<css file="__ROOT__/admin/tpl/public/css/common.css"/>
		<css file="__ROOT__/admin/tpl/public/css/article.css"/>
		<js file="__ROOT__/admin/tpl/public/js/article.js"/>
		<css file="__ROOT__/admin/tpl/public/css/Validform.css"/>
		<js file="__ROOT__/admin/tpl/public/js/Validform.js"/>
		
		
		<title>Insert title here</title>
		
		
				
	</head>
    <body>		
        <div id='acticleShow' class='comShow'>
            <h1><a href="javascript:;">发表文章</a></h1>
            <form id="articleAddForm" action='__CONTROL__/add' method="post">
            	<input type="hidden" name="uid" value="{$hd.session.user}" />
              	<div class='formStyle1'>
              		<dl>
              			<dt><strong>标题：</strong></dt>
						<dd ><input style='width:260px;' type="text" value="" name="title"  datatype="s6-18"  nullmsg="请输入标题！" errormsg="标题至少6个字符,最多30个字符！" /></dd>
						<dd><span class="Validform_checktip">一个好的标题，可以使人有一个阅读的欲望。</span></dd>
              		</dl>
					<dl>
              			<dt><strong>发表栏目：</strong></dt>
						<dd ><select name="cid">                            	
                               <option value="">选择栏目</option>
								<list from="$category" name="$v">									
									<option value="{$v.catid}">{$v.html}{$v.cname}</option>
								</list>
                            </select>
						</dd>
						<dd><span class="Validform_checktip"></span></dd>
              		</dl>
					<dl>
              			<dt><strong>选择来源：</strong></dt>
						<dd >							
                            <select id='selectSource' name="news_data[source]">
								<list from="$source" name="$v">
									<option value="{$v.sid}" >{$v.sname}</option>								
								</list>
                            </select>
							<a id="addSource" href="javascript:void(0)">添加来源</a>
						</dd>
						<dd style='position:relative;'>
							<div id="addSourceBox"  style="display:none; position:absolute; padding:10px; background:#b3d5ff;z-index:1; ">
								<span>网站名称：</span><input type="text" id="snameADD">
								<span>url地址：</span><input value="http://" type="text" id='urlADD'>
								<a id='addBtn' ajaxUrl = "__CONTROL__/add_source" style='color:#000; font-weight:bold;' href="javascript:void(0)">添加</a>
								<a id='cancelBtn' style='color:#000; font-weight:bold;padding-left:15px;' href="javascript:void(0)">取消</a>
							</div>
							
							
						</dd>
              		</dl>
					<table style='width:100%; float:left;'>
						<tr style='border-bottom:1px solid #EEF2F5;'>
							<th width="20%" style="text-align:right;">缩略图：</th>
							<td><upload name="thumb" limit="1" imagesize="200,200" thumb_type="6" /></td>
						</tr>
					</table>	
					<dl>
              			<dt><strong>关键字：</strong></dt>
						<dd ><input type="text" name="keywords" style="width:300px;"/></dd>
						<dd><span class="Validform_checktip">关键字有助于提高，搜索引擎对网站的收录。</span></dd>
              		</dl>	
					<table style='width:100%; float:left;'>	
						<tr style='border-bottom:1px solid #EEF2F5; '>
              				<th width="20%" style="text-align:right;"> 描述：</th>
							<td width='70%'><textarea style="height:80%;width:100%" name="description"></textarea><td>							
						</tr>
						<tr style='border-bottom:1px solid #EEF2F5;'>
              				<th width="20%" style="text-align:right;">正文：</th>
							<td width='70%'><editor   name="news_data[body]" type="1" style="1"/><td>							             			
						</tr>
					</table>					
				</div>		
				<input type="submit" class="submit" value="添加文章"/>
            </form>
        </div>
		
    </body>
</html>